#include <stdio.h>

// 姓名 年龄 性别 学号 
typedef struct Student{
    char* name;
    char* number;
    char sex;
    int age;
}Student;

int main(){
    Student students[5] ={
        {"xiaozhao","20210001",'1',18},
        {"xiaozhao","20210002",'1',18},
        {"xiaozhao","20210003",'1',18},
        {"xiaozhao","20210004",'1',18},
        {"xiaozhao","20210005",'1',18}
    };

    int maxIndex = 0;
    int i;
    for (i = 1; i < 5; i++)
    {
        if(students[i].number > students[0].number){
            maxIndex = i;
        }   
    }
    printf("name = %s\n",students[maxIndex].name);
    printf("sex = %c\n",students[maxIndex].sex);
    printf("age = %d\n",students[maxIndex].age);
    printf("number = %s\n",students[maxIndex].number);
}